package org.jeecg.modules.oa.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 审批节点按钮表
 * @Author: jeecg-boot
 * @Date:   2019-12-04
 * @Version: V1.0
 */
@Data
@TableName("pd_node_button")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="pd_node_button对象", description="审批节点按钮表")
public class NodeButton {
    
	/**按钮表id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "按钮表id")
	private String id;
	/**节点ID*/
	@Excel(name = "节点ID", width = 15)
    @ApiModelProperty(value = "节点ID")
	private String nodeId;
	/**按钮名称*/
	@Excel(name = "按钮名称", width = 15)
    @ApiModelProperty(value = "按钮名称")
	private String buttonName;
	/**按钮的code值*/
	@Excel(name = "按钮的code值", width = 15)
    @ApiModelProperty(value = "按钮的code值")
	private String buttonCode;
	/**特殊执行条件 0 ：有  ， 1：无 */
	@Excel(name = "特殊执行条件 0 ：有  ， 1：无 ", width = 15)
    @ApiModelProperty(value = "特殊执行条件 0 ：有  ， 1：无 ")
	private String conditionFlg;
	/**推送条件 0 ：有  ， 1：无 */
	@Excel(name = "推送条件 0 ：有  ， 1：无 ", width = 15)
    @ApiModelProperty(value = "推送条件 0 ：有  ， 1：无 ")
	private String sendFlg;
	/**创建者*/
	@Excel(name = "创建者", width = 15)
    @ApiModelProperty(value = "创建者")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新者*/
	@Excel(name = "更新者", width = 15)
    @ApiModelProperty(value = "更新者")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
	/**备注信息*/
	@Excel(name = "备注信息", width = 15)
    @ApiModelProperty(value = "备注信息")
	private String remarks;
	/**删除标记*/
	@Excel(name = "删除标记", width = 15)
    @ApiModelProperty(value = "删除标记")
	private String delFlag;
	@TableField(exist = false)
	private String buttonCodes;
	@TableField(exist = false)
	private List<ButtonCondition> buttonConditionList;
}
